<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-danger" href="#"><i class="icon-lock"></i> 屏蔽</a>
		<a class="btn btn-warning" href="#"><i class="icon-unlock"></i> 解除屏蔽</a>
		<a class="btn btn-success" href="#"><i class="icon-edit"></i> 编辑</a>
	</div>
</div>	
<table class="table table-bordered">
	<thead>
		<tr><th>邮箱</th>
			<th>姓名</th>
			<th>是否管理员</th>
			<th>所属机构</th>
			<th>角色</th>
			<th>是否屏蔽</th>
			<th>创建时间</th>
			<th  style="width: 80px;text-align: center;">操作</th>
		</tr>
	</thead>
	<#list pageBean.resultList as user>
	<tr class="ui-widget-content">
		<td>${(user.email)}</td>
		<td>${(user.realName)}</td>
		<td><@mt.YesOrNo value=((user.isManager)!false) r=false /></td>
		<td>${(user.on)}</td>
		<td>${(user.rn)}</td>
		<td><@mt.YesOrNo value=((user.deleted)!false) r=false /></td>
		<td>${(user.ct?string('yyyy-MM-dd HH:mm'))}</td>
		<td style="text-align: center;">
			<div class="btn-group">
			<#if !user.deleted>
			<a class="btn btn-xs btn-danger" href="javascript:;" onclick="javascript: shieldEmp_emp('${user.code}', '${user.realName}');return false;" title="屏蔽"><i class="icon-lock"></i></a>
			<#else>
			<a class="btn btn-xs btn-warning" href="javascript:;" onclick="javascript: unshieldEmp_emp('${user.code}', '${user.realName}');return false;" title="解除屏蔽"><i class="icon-unlock"></i></a>
			</#if>
			<a class="btn btn-xs btn-success" href="javascript:;" onclick="javaxcript: sys_load_handle('emp-edit_${user.code}');return false;" title="编辑" ><i class="icon-edit"></i></a>
			</div>
		</td>
	</tr>
	</#list>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'queryEmp_emp'/>